<ion-view view-title="团购" class="myworld_sale">
	
<ion-content scroll="false">
	<div class="row text-center font-large-my padding-0">
		<div class="col" on-tap="activeSlide(0)" ng-class="selectIndex==0?'top-activated':''">
 		 <img src="img/group1.png" /><br /> 
 		    活动设置
 		</div>
 		<div class="col" on-tap="activeSlide(1)" ng-class="selectIndex==1?'top-activated':''">
 		   <img src="img/group2.png" /><br />  
 		     团购商品
 		</div>
 		<div class="col" on-tap="activeSlide(2)" ng-class="selectIndex==2?'top-activated':''">
 		 <img src="img/group3.png" /><br /> 
 		    团购对象
 		</div>
 	</div>
	
	
  <ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
	
	<ion-slide>
		<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
			<!--描述：下拉刷新-->
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			
			<!--引入外部的页面-->
		   <div ng-include="'templates/myworld/sale/activitysetting_tem.html'"></div>
			
			<!--描述：当用户到达页脚或页脚附近时-->
			<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
		</ion-scroll>
	</ion-slide>
		
		
	<ion-slide>
	<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
		<!--描述：下拉刷新-->
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		  	  <div class="item item-borderless padding-10 text-center">关联商品</div>
		  	   <!--<div class="list">
			  	<li class="item font-large-my item-assertive padding-0">
			    <div class="row text-center padding-0">
			   	  <div class="col col-30">商品名称</div>
			   	  <div class="col">价格</div>
			   	  <div class="col">定金</div>
			   	  <div class="col">数量</div>
			   	  <div class="col">起购数</div>
			   </div>
			  </li> 
			   <li class="item padding-0 stable-bg" ng-repeat="num in [1,2,3,4,5]">
			    <div class="row padding-0" on-tap="showPopover($event)">
			   	  <div class="col"><input type="text" readonly="" value="XX商品444444444444" style="width: 100%;" class="text-center"/></div>
			   	  <div class="col"><input type="text" readonly="" value="1200" style="width: 100%;"  class="text-center"></input></div>
			   	  <div class="col"><input type="text" readonly="" value="30000" style="width: 100%;"  class="text-center"></input></div>
			   	  <div class="col"><input type="text" readonly="" value="550" style="width: 100%;" class="text-center"></input></div>
			   	  <div class="col"><input type="text" readonly="" value="8" style="width: 100%;"  class="text-center"></div>
			    </div>
			 </li>  
		  </div>ng-repeat="num in [1,2,3,4]"-->
		   	<div class="padding-5  light-bg">
		   		 <table border="1" cellpadding="0" cellspacing="0" width="100%">
			   		 <tr>
				   	 	<td width="30%">商品名称</td>
				   	 	<td  width="17%">价格</td>
				   	 	<td  width="17%">定金</td>
				   	 	<td  width="17%">数量</td>
				   	 	<td  width="19%">起购数</td>
				   	 </tr>
		   		 </table>
			   <table border="1" cellpadding="0" cellspacing="0" width="100%" ng-repeat="goods in dealer.goods">
			   	  <tr class="font-gray-my" >
			   	 	<td on-tap="detailChanged(goods.goods_id)" class="positive" width="30%">{{goods.goods_name}}</td>
			   	 	<td width="17%">{{goods.price}}</td>
			   	 	<td width="17%">{{goods.deposit}}</td>
			   	 	<td width="17%">{{goods.count}}</td>
			   	 	<td width="19%">{{goods.least_buy_num}}</td>
			   	  </tr>
				   	  <tr ng-show="detailContent[goods.goods_id].checked"><td colspan="5" style="line-height:10px;border: none;"><img src="img/trangle.png" /></td></tr>
				   	  <tr class="font-gray-my stable-bg" ng-show="detailContent[goods.goods_id].checked">
				   	 	<td colspan="5" class="assertive" >团购详情
				   	      <!--<i class="icon ion-ios-plus-outline positive font-1rem-my right-zhang padding-right" on-tap="add_goods_rule(goods.goods_id)"></i>-->
				   	      </td>
				   	  </tr>
				   	  <div >
				   	  	<tr class="font-gray-my stable-bg" ng-show="detailContent[goods.goods_id].checked"  ng-repeat="rule in goods.groupbuy_rule" >
				   	 	<td><input type="text"  readonly="" placeholder="请输入数量" class="text-center" ng-model="rule.group_count">件</td>
				   	 	<td colspan="2"><input  readonly="" placeholder="请输入时间" class="text-center" ng-model="rule.days">天</td>
				   	 	<td colspan="2"><input type="text" ng-disabled="!isable" placeholder="请输入价格" class="text-center" ng-model="rule.promotion_price"></td>
				   	  </tr>
				   	  </div>
				   	  
				   	   <!--<tr class="font-gray-my stable-bg" ng-show="detailContent[$index]">
				   	 	<td>1500件</td>
				   	 	<td colspan="2">20天</td>
				   	 	<td colspan="2"><input type="text" style="width: 100%;padding: 0 5px;" placeholder="请输入价格" class="text-center"></td>
				   	  </tr>-->
				   	  <tr ng-show="detailContent[goods.goods_id].checked"><td colspan="5" style="line-height:10px;border: none;">&nbsp;</td></tr>
			    </table>
			</div>
		
	<div class="button-bar padding">
     	 <button class="button  button-assertive">取消</button>
     	 <button class="button  button-positive col-offset-10" on-tap="save_goods_rule()">保存</button>
     </div>

		<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-scroll>
</ion-slide>			
					
					
					
<ion-slide>
	<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
		<!--描述：下拉刷新-->
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		
		<!--引入外部的文件-->
		  <div ng-include="'templates/myworld/discount/selectagency_template.html'"></div>
     
		<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-scroll>
  </ion-slide>
			
		</ion-slide-box>
	</ion-content>
</ion-view>